#ifndef INSCRIPTION_H
#define INSCRIPTION_H

#include <QtGui>
#include <QtSql/QSqlDatabase>
#include <QtSql/QSqlQuery>
#include <QWidget>
#include <QMessageBox>

namespace Ui {
class Inscription;
}

class Inscription : public QWidget
{
    Q_OBJECT
    
public:
    explicit Inscription(QWidget *parent = 0);
    ~Inscription();
    
private slots:
    void on_comboBox_2_activated(int index);

    void on_pushButton_clicked();

private:
    bool check_champ();
    bool check_password();
    bool check_doublon(const QString champ, const QString value);
    Ui::Inscription *ui;
};

#endif // INSCRIPTION_H
